import React from 'react';
import 'bootstrap/dist/css/bootstrap.css';

//List.js
class TrData extends React.Component{
    constructor(props){
      super(props);
      this.state={}
    }
    render(){
      return (
        this.props.users.map((user,i)=>{
            return (
                <tr key={user.id} className="text-center">
                  <td>{user.id}</td>
                  <td>{user.title}</td>
                  <td>{user.name}</td>
                  <td>{user.sex}</td>
                </tr>
            )       
        })
      )
    }
  }

  export default TrData